package com.mapapp.flutter_mapapp.bean;

import android.text.TextUtils;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

public class DetailTree implements MultiItemEntity {

    /**
     * bh : string
     * children : [null]
     * createTime : 2019-12-23T01:20:12.977Z
     * editTime : 2019-12-23T01:20:12.977Z
     * id : string
     * isRoot : 0
     * latitude : string
     * level : 0
     * levelNumber : 0
     * longitude : string
     * parentId : string
     * processNow : string
     * processNowName : string
     * processes : [{"createTime":"2019-12-23T01:20:12.977Z","createUserId":0,"editTime":"2019-12-23T01:20:12.977Z","id":"string","processCount":0,"processName":"string","processOrder":0,"processPercent":0}]
     * regionId : string
     * regionName : string
     * taskId : string
     */

    private String bh;
    private String createTime;
    private String editTime;
    private String id;
    private int isRoot;
    private String latitude;
    private int level;
    private int fixNoAuditNum;
    private int levelNumber;
    private String longitude;
    private String parentId;
    private String processNow;
    private String processNowName;
    private String regionId;
    private String regionName;
    private String taskId;
    private List<DetailTree> children;
    private List<ProcessBean> processes;
    private boolean leaf;
    private String address;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    private boolean visible; //root不包含此属性

    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public String getBh() {
        return bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getEditTime() {
        return editTime;
    }

    public void setEditTime(String editTime) {
        this.editTime = editTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getIsRoot() {
        return isRoot;
    }

    public void setIsRoot(int isRoot) {
        this.isRoot = isRoot;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getLevelNumber() {
        return levelNumber;
    }

    public void setLevelNumber(int levelNumber) {
        this.levelNumber = levelNumber;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getProcessNow() {
        return processNow;
    }

    public void setProcessNow(String processNow) {
        this.processNow = processNow;
    }

    public String getProcessNowName() {
        return processNowName;
    }

    public void setProcessNowName(String processNowName) {
        this.processNowName = processNowName;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public List<DetailTree> getChildren() {
        return children;
    }

    public void setChildren(List<DetailTree> children) {
        this.children = children;
    }

    public List<ProcessBean> getProcesses() {
        return processes;
    }

    public void setProcesses(List<ProcessBean> processes) {
        this.processes = processes;
    }

    @Override
    public int getItemType() {
        if (TextUtils.isEmpty(getRegionId())) {
            return 1;
        } else {
            return 0;
        }

    }

    public int getFixNoAuditNum() {
        return fixNoAuditNum;
    }

    public void setFixNoAuditNum(int fixNoAuditNum) {
        this.fixNoAuditNum = fixNoAuditNum;
    }
}
